package cn.e4j.modular.crm.entity;

import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.time.LocalDate;
import java.io.Serializable;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author miaoyl
 * @since 2019-01-11
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("GWAE_T")
public class GwaeT extends PO<GwaeT> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "GWAEENT", type = IdType.INPUT)
    private String GWAEENT;
    private String GWAE001;
    private String GWAE002;
    private String GWAE003;
    private String GWAEACTI;
    @TableField(fill = FieldFill.INSERT)
    private String GWAEUSER;
    @TableField(fill = FieldFill.INSERT)
    private String GWAEGRUP;
    @TableField(fill = FieldFill.INSERT)
    private String GWAEMODU;
    @TableField(fill = FieldFill.UPDATE)
    private String GWAETIME;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT)
    private LocalDate GWAEDATE;
    @TableField(fill = FieldFill.INSERT)
    private String GWAEORIG;
    @TableField(fill = FieldFill.INSERT)
    private String GWAEORIU;


    @Override
    protected Serializable pkVal() {
        return this.GWAEENT;
    }

}
